﻿namespace KinonekoSoftware.CodariaDB.Documents.Templates
{
    public sealed class ResourceInstanceTemplateGenerator: InstanceTemplateGenerator
    {

        protected override void OnInitializeDefinitions(ICollection<DataPartDefinition> collection)
        {
            // TODO:
            Define(collection, DataPartType.Basic_Custom, 0);
            Define(collection, DataPartType.Detail_Common_BulkProperties, 2);
            Define(collection, DataPartType.Story, 3);
        }

        /// <summary>
        /// 初始化属性集合。
        /// </summary>
        /// <param name="collection">要初始化的属性集合。</param>
        /// <remarks>
        /// <para>名字的字段由DataPart创建，而非模板自带。</para>
        /// </remarks>
        protected override void OnInitializeProperties(ICollection<CompositeItem> collection)
        {
        }

        public override InstanceType TargetType => InstanceType.Item_Resources;
    }
}